﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace MvcRedovalnica.Models
{
    public class PredelanaSnov
    {
        public List<SelectListItem> razrediOpcije { get; set; }
        public List<SelectListItem> predmetiOpcije { get; set; }

        [Required(ErrorMessage = "Izberite razred!")]
        [Display(Name = "Poucevani razred")]
        public string selectedRazred { get; set; }

        [Required(ErrorMessage = "Vpisite datum!")]
        [Display(Name = "Datum poucevanja")]
        [DataType(DataType.Date)]
        public DateTime date { get; set; }

        [Required(ErrorMessage = "Izberite predmet!")]
        [Display(Name = "Predmet poucevanja")]
        public string selectedPredmet { get; set; }

        [Required(ErrorMessage = "Napisite porocilo!")]
        [Display(Name = "Porocilo o predelani snovi")]
        public string porocilo { get; set; }
    }

}